package com.suray.wcs.service.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @author rbj
 */

public enum MoveRgvType implements IEnum<Integer> {
    /**
     * 松下提升机
     */
    CROSS_FLOOR(0, "跨层调车"),
    /**
     * 西门子提升机
     */
    CROSS_ZONE(1, "跨区调车");
    @EnumValue
    private Integer type;
    @JsonValue
    private String description;

    MoveRgvType(int type, String description) {
        this.type = type;
        this.description = description;
    }

    @Override
    public String toString() {
        return description;
    }

    @Override
    public Integer getValue() {
        return type;
    }

}
